import http from "../utils/http/service";
// import { ProjectName } from "../views/document/manage/types";

// 进度列表
export const postProgressList = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/progressList", data);
};

// 新增进度
export const postAddProgress = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/add", data);
};

// 编辑进度
export const postUpdateProgress = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/update", data);
};

// 删除进度
export const postDeleteProgress = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/delete", data);
};

// 获取进度详情
export const postProgressInfo = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/progressInfo", data);
};

// 添加循环任务
export const postAddRepeat = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/add/repeat", data);
};

// 新增连线
export const postSaveAddlink = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/addlink", data);
};

// 删除连线
export const postSaveDeletelink = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/deletelink", data);
};

// 新增任务
export const postSaveAddtask = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/addtask", data);
};

// 删除任务
export const postSaveDeletetask = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/deletetask", data);
};

// 编辑任务
export const postSaveUpdatetask = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/edittask", data);
};

// 获取甘特指定信息
export const postGetGanttCurrentInfo = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/partGanttInfo", data);
};

// 获取项目信息
export const postGetProjectInfo = (data): any => {
  return http.post("/snow-admin/flowProjectProgress/projectList", data);
};
